//
//  UIAlertMaker.h
//  YanXiuWang
//
//  Created by 慧趣小歪 on 16/12/6.
//  Copyright © 2016年 小分队. All rights reserved.
//

#import <UIKit/UIKit.h>

@class UIAlertMaker;

typedef UIAlertMaker * (^ALERT_TAG)(id tag);
typedef UIAlertMaker * (^ALERT_TEXT)(NSString * text);
typedef UIAlertMaker * (^ALERT_STYLE)(UIAlertActionStyle style);
typedef UIAlertMaker * (^ALERT_ACTION)(SEL selector);

UIAlertMaker * UIAlert(UIAlertControllerStyle style);

@interface UIAlertMaker : NSObject

@property (nonatomic, copy, readonly) ALERT_TAG byParam;
@property (nonatomic, copy, readonly) ALERT_TEXT title;
@property (nonatomic, copy, readonly) ALERT_TEXT message;
@property (nonatomic, copy, readonly) ALERT_TEXT button;
@property (nonatomic, copy, readonly) ALERT_STYLE style;
@property (nonatomic, copy, readonly) ALERT_ACTION onTappedCall;

- (void)presentWith:(UIViewController *)controller;

@end
